# Workflows

# Create a workflow

Creation of a workflow is ideally the resposibility of a Developer persona.

Under Workflows in Development, click on the Create option on the right corner.

WF3

The first step is to design the Workflow in the Workflow Designer window. If you have an already designed BPMN file, please drag and drop or upload. Else create a design by clicking on the Create option at the right end of the page. Here is where you include Bots and Hives.

WF4

To know in detail, click here

# Fill details of workflow

Once the design is completed, give the workflow a name and description and save it. Now you can view the workflow in the list of workflows.

Select it and fill in the properties. Input proposals, Constants and Profiles can be set up by clicking on the respective Edit options.

WF5

Use the buttons on the right top corner to first activate the workflow (the white toggle option). Next Deploy the workflow by clicking on the button next to the white toggle button.

WF6

Note: You can now trigger or schedule this Workflow from the Dashboard. Know how

# Convert to Automation Service

Finally register as an automation service by clicking on the + button. Congrats! The workflow has been registered as an automation service. Now you can activate the Automation Service to experience the functionality.

WF6

# Design in Workflow Designer

To design in the Workflow Designer, it is essential to know about a few components.

  1. Start Event: This is the starting point of the workflow creation or execution
  2. End Event: Last component of any workflow which marks the end of the workflow
WFD1
  1. Decision: This helps the workflow execution to decide which will be the next step based on the expression evaluated
WFD2
  1. User Task: It helps in getting either the input or approval from the user during the workflow execution. Need to assign the forms in the “Tulip Panel” of the user task component
WFD3
  1. Service Task:

    Bot: This helps in assigning the bot to the workflow

    Step 1: Choose the “Bot” from the “General Panel”

    WFD4

    Step 2: Select the necessary Hive Type, Hive and Bot from the Tulip Panel

    WFD5

    Bot Trigger: This helps in triggering a bot in the workflow using the “Bot Id”

    Step 1: Choose the “Bot trigger” from the “General Panel”

    WFD6

    Step 2: Assign the Bot id in the Input/Output panel

    WFD7
  2. Appender: This converts the state variable to the workflow variable

    Step 1: Choose the “Appender” from the “General Panel”

    WFD8

    Step 2: Provide the “Workflow Variable Name” and the corresponding “State Variable Name” in the tulip panel

    WFD9
  3. Iterator: This helps to iterate over the list in the workflow

    Step 1: Choose the “Iterator” from the “General Panel”

    WFD10

    Step 2: Provide the “Collection Name” in the Tulip Panel

    WFD11
  4. Refractor: This helps in renaming the “State Variable Name” to “New Variable Name”

    Step 1: Choose the “Refractor” from the “General Panel”

    WFD12

    Step 2: Assign the variable names as below

    WFD13
  5. Workflow Trigger: This helps in triggering another workflow from the current workflow using the “Workflow Id”

    Step 1: Choose the “Workflow trigger” from the “General Panel”

    WFD14

    Step 2: Assign the Workflow id in the Input/Output panel

    WFD15
  6. Create Automation Service: This helps in creating automation service from the current workflow using the “service Id”

    Step 1: Choose the “Create Automation Service” from the “General Panel”

    WFD16

    Step 2: Assign the Automation Service id in the Input/Output panel

    WFD17
  7. Timer: This helps the workflow execution wait or pause for the certain time based on the configuration

WFD18